package festival.palace;

import java.util.ArrayList;
import java.util.List;

public class PalaceCard {
	
	public static final int Son = 0;
	public static final int Father = 1;
	public static final int HolySpirit = 2;
	
	private List<Integer> mSymbols = new ArrayList<Integer>();
	
	public PalaceCard(int[] symbols) {
		for (int i : symbols)
			mSymbols.add(i);
	}
	
	public List<Integer> getSymbols() {
		return mSymbols;
	}
	
	public int compareTo(PalaceCard card) {
		int score = 0;
		List<Integer> symbols = card.getSymbols();
		for (int i : mSymbols)
			if (symbols.contains(i))
				score++;
		return score;
	}

}
